﻿<!--
// This source is subject to Microsoft Public License (Ms-PL).
// Please see http://taskcardcreator.codeplex.com for details.
// All other rights reserved.
-->
<Window x:Class="TaskCardCreator.TaskCardDetailsPopup"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:controlLibrary="clr-namespace:WpfControlLibrary;assembly=WpfControlLibrary" Title="Task Card Details" WindowStartupLocation="CenterOwner" ResizeMode="NoResize" ShowInTaskbar="False" Height="650" Width="500" Background="#FFE0EAF6" WindowStyle="SingleBorderWindow">
  <Grid Margin="10">
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto" />
      <RowDefinition Height="Auto" />
      <RowDefinition Height="2*" />
      <RowDefinition Height="Auto" />
      <RowDefinition Height="2*" />
      <RowDefinition Height="Auto" />
      <RowDefinition Height="2*" />
      <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>

    <Border Grid.Row="0" Background="Wheat">
      <TextBlock Margin="5">Select Template:</TextBlock>
    </Border>

    <TextBlock Grid.Row="1" Margin="5" HorizontalAlignment="Left">
      <Hyperlink NavigateUri="http://taskcardcreator.codeplex.com/wikipage?title=Template%20Overview" RequestNavigate="Hyperlink_RequestNavigate">Read more about the different templates</Hyperlink>
    </TextBlock>

    <ListBox Grid.Row="2" Margin="5" Name="reportListBox"/>

    <Border Grid.Row="3" Background="Wheat">
      <TextBlock Margin="5">Select Work Item Query:</TextBlock>
    </Border>

    <controlLibrary:WorkItemsQueriesControl Grid.Row="4" Margin="5" HorizontalAlignment="Stretch" Name="queries" SelectionChanged="queries_SelectionChanged" />

    <Border Grid.Row="5" Background="Wheat">
      <TextBlock Margin="5">Select Work Items:</TextBlock>
    </Border>
    <Grid Grid.Row="6">
      <ListView Margin="5" ItemsSource="{Binding WorkItems}" Name="listView" HorizontalAlignment="Stretch" ScrollViewer.VerticalScrollBarVisibility="Visible">
        <ListView.View>
          <GridView>
            <GridViewColumn Width="50" Header="Id" DisplayMemberBinding="{Binding Id}"  />
            <GridViewColumn Width="290" Header="Title" DisplayMemberBinding="{Binding Title}" />
            <GridViewColumn Width="90" Header="State" DisplayMemberBinding="{Binding State}" />
          </GridView>
        </ListView.View>
      </ListView>
      <StackPanel VerticalAlignment="Center" Name="progress" Visibility="Collapsed">
        <ProgressBar HorizontalAlignment="Center" IsIndeterminate="True" Margin="5" Width="100" Height="20"></ProgressBar>
        <TextBlock HorizontalAlignment="Center">Loading...</TextBlock>
      </StackPanel>
    </Grid>

    <StackPanel Grid.Row="7" Orientation="Horizontal" HorizontalAlignment="Right">
      <Button Margin="5" Width="75" IsDefault="True" Click="Button_ClickOk" HorizontalAlignment="Right">Ok</Button>
      <Button Margin="5" Width="75" Click="Button_ClickCancel" HorizontalAlignment="Right">Cancel</Button>
    </StackPanel>
    
  </Grid>
</Window>
